class CreateIncidents < ActiveRecord::Migration
  def self.up
    create_table :incidents do |t|
      t.string :typeincident
      t.string :proprietecomple
      t.datetime :datedetection
      t.datetime :dateresolution
      t.string :etat
      t.interger :machineid
      t.interger :regleid

      t.timestamps
    end
  end

  def self.down
    drop_table :incidents
  end
end
